package com.cskaoyan.controller.system;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.bean.po.MarketLog;
import com.cskaoyan.service.MarketLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: Yang Yi-zhou
 * @Date: 2022/9/7 12:25
 * @Description:
 */
@RestController
@RequestMapping("admin/log")
public class LogController {
    @Autowired
    MarketLogService marketLogService;

    @RequestMapping("list")
    public BaseRespVo listLog(Integer page, Integer limit, String sort, String order) {
        CommonData<MarketLog> data = marketLogService.listAdmin(page, limit, sort, order);
        return BaseRespVo.ok(data);
    }
}
